package ooday02;
//学生类
public class Student {
    //成员变量---对象的属性
    String name;
    int age;
    String address;

    //给成员变量赋初值
    Student(String name,int age,String address){
        this.name=name;
        this.age=age;
        this.address=address;
    }
    //方法-----对象的行为/功能
    void study(){
        System.out.println(name+"在学习···");
    }
    void introduce(){
        System.out.println("大家好，我叫"+name+",今年"+age+"岁了，家住在"+address);
    }
}
